github.com/jackc/pgx/v5/internal/sanitize.sqlLexer.pos (field)
59 uses
github.com/jackc/pgx/v5/internal/sanitize (current package)
sanitize.go#L207: pos int
sanitize.go#L217: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L218: l.pos += width
sanitize.go#L222: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L224: l.pos += width
sanitize.go#L232: nextRune, _ := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L234: if l.pos-l.start > 0 {
sanitize.go#L235: l.parts = append(l.parts, l.src[l.start:l.pos-width])
sanitize.go#L237: l.start = l.pos
sanitize.go#L241: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L243: l.pos += width
sanitize.go#L247: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L249: l.pos += width
sanitize.go#L254: if l.pos-l.start > 0 {
sanitize.go#L255: l.parts = append(l.parts, l.src[l.start:l.pos])
sanitize.go#L256: l.start = l.pos
sanitize.go#L266: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L267: l.pos += width
sanitize.go#L271: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L275: l.pos += width
sanitize.go#L278: if l.pos-l.start > 0 {
sanitize.go#L279: l.parts = append(l.parts, l.src[l.start:l.pos])
sanitize.go#L280: l.start = l.pos
sanitize.go#L290: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L291: l.pos += width
sanitize.go#L295: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L299: l.pos += width
sanitize.go#L302: if l.pos-l.start > 0 {
sanitize.go#L303: l.parts = append(l.parts, l.src[l.start:l.pos])
sanitize.go#L304: l.start = l.pos
sanitize.go#L318: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L319: l.pos += width
sanitize.go#L326: l.pos -= width
sanitize.go#L327: l.start = l.pos
sanitize.go#L335: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L336: l.pos += width
sanitize.go#L340: _, width = utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L341: l.pos += width
sanitize.go#L343: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L347: l.pos += width
sanitize.go#L350: if l.pos-l.start > 0 {
sanitize.go#L351: l.parts = append(l.parts, l.src[l.start:l.pos])
sanitize.go#L352: l.start = l.pos
sanitize.go#L362: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L363: l.pos += width
sanitize.go#L367: _, width = utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L368: l.pos += width
sanitize.go#L373: if l.pos-l.start > 0 {
sanitize.go#L374: l.parts = append(l.parts, l.src[l.start:l.pos])
sanitize.go#L375: l.start = l.pos
sanitize.go#L385: r, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L386: l.pos += width
sanitize.go#L390: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L392: l.pos += width
sanitize.go#L396: nextRune, width := utf8.DecodeRuneInString(l.src[l.pos:])
sanitize.go#L401: l.pos += width
sanitize.go#L409: if l.pos-l.start > 0 {
sanitize.go#L410: l.parts = append(l.parts, l.src[l.start:l.pos])
sanitize.go#L411: l.start = l.pos